package com.sc.base.user.bean.entity;

import com.sc.commons.base.repository.BaseEntity;
import com.sc.commons.base.utils.repo.Comment;
import lombok.Data;
import org.hibernate.annotations.Type;

import javax.persistence.*;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * @author
 */
@Data
@Entity
@Table(name = "tb_user")
public class User extends BaseEntity {

    @Comment("用户名")
    private String username;

    @Comment("年龄")
    private Integer age;

    @Comment("生日")
    private LocalDate birthDayDate;

    @Comment("注册时间")
    private LocalDateTime regDateTime;

    @Comment("是否删除")
    private Boolean deleted;

    @Comment("备注,测试大字段")
    private String remark;


}
